<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/19
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <link href="${ctx}/assets/public_skin/css/reset.css" rel="stylesheet">
    <link href="${ctx}/assets/public_skin/css/shop_style.css" rel="stylesheet">
    <script src="${ctx}/assets/public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="${ctx}/assets/public_skin/js/shop.common.js" type="text/javascript"></script>
    <title>选择分类</title>
</head>
<body>
<%--<header>--%>
    <%--<h1>选择分类</h1>--%>
    <%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<article class="viewports">
    <ul class="list_item">
        <c:forEach items="${categoryList}" var="category">
            <c:if test="${category.haveChild==1}">
                <li class="odr2_b plr20">
                    <a class="show" href="${ctx}/product/selectClassifyByParentId?pcId=${category.categoryId}">
                        <span class="c0">${category.categoryName}</span>
                        <span class="r"><i class="ico-30 ico_arrow"></i></span>
                    </a>
                </li>
            </c:if>
            <c:if test="${category.haveChild==0}">
                <li class="odr2_b plr20">
                    <a class="show" href="${ctx}/product/publishProduct?cid=${category.categoryId}">
                        <span class="c0">${category.categoryName}</span>
                        <span class="r"><i class="ico-30 ico_arrow"></i></span>
                    </a>
                </li>
            </c:if>
        </c:forEach>

    </ul>
</article>
</body>
</html>
